{% extends 'cms/base.html' %}
{% block title %}添加员工{% endblock %}
{% block content-header %}<h3>添加员工</h3>{% endblock %}

{% block content %}
    <div class="row">
        <div class="col-md-6">
            <div class="box">
                <form action="" method="post">
                    {% csrf_token %}
                    <div class="box-body">
                        <div class="from-group">
                            <label for="" class="telephone-input">手机号码：</label>
                            <input type="text" class="form-control" name="telephone">
                        </div>
                        <div class="from-group">
                            <label for="" class="telephone-input">用户名：</label>
                            <input type="text" class="form-control" name="username">
                        </div>
                        <div class="checkbox">
                            {% for group in groups %}
                                <label>
                                    <input type="checkbox" name="groups" value="{{ group.pk }}" class="checkbox">
                                    {{ group.name }}
                                </label>
                            {% endfor %}
                        </div>
                        <div class="form-group">
                            {% for message in messages %}
                                {{ message }}
                            {% endfor %}
                        </div>
                    </div>
                    <div class="box-footer">
                        <button class="btn btn-primary float-right">立即添加</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
{% endblock %}